import { APIV4 } from './ip.js'
import { version } from '../../package.json'

const APIV1 = '/api/v1'
const APIV2 = 'http://222.196.35.35:9080/GSMS'
const APIV3 = 'http://127.0.0.1:8080/api'


module.exports = {
  name: 'ForeignExchange',
  prefix: 'ForeignExchange',
  footerText: `SWUST © 2017 Version:${version}`,
  logo: '/logo.png',
  iconFontCSS: '/iconfont.css',
  iconFontJS: '/iconfont.js',
  CORS: [],
  ADDFLAG: 'new',
  openPages: ['/login'],
  apiPrefix: '/api/v1',
  APIV1,
  APIV2,
  api: {
    // userLogin: `${APIV4}/login`,
    currentUser: `${APIV4}/api/users/current`,
    currentPermission: `${APIV4}/api/permissions/current/list`,
    // userLogin: `${APIV4}/login`,
    // userLogout: `${APIV1}/user/logout`,
    userInfo: `${APIV1}/userInfo`,
    users: `${APIV3}/dicts/allbrif`,
    // users: `${APIV4}/ift/basecode/get.do?id=8`,
    findUserByID: `${APIV2}/user/findbyid.do`,
    userRole: `${APIV2}/role/listall.do`,
    userDepartment: `${APIV2}/department/listall.do`,
    posts: `${APIV1}/posts`,
    user: `${APIV1}/user/:id`,
    dashboard: `${APIV1}/dashboard`,
    menus: `${APIV4}/api/permissions/menu/tree`,
    weather: `${APIV1}/weather`,
    v1test: `${APIV1}/test`,
    v2test: `${APIV2}/test`,
    menuListAll: `${APIV2}/role/getright.do`,
    menuListSub: `${APIV2}/menu/sub.do`,
    menuFindByID: `${APIV2}/menu/getmenubyid.do`,

    testApi: `${APIV3}/ift/basecode/list/`,
    // 通知相关API
    noticesList: `${APIV4}/api/notices/listbrif`,
    noticesListAll: `${APIV4}/api/notices/allbrif`,
    noticesAdd: `${APIV4}/api/notices/add`,
    noticesEdit: `${APIV4}/api/notices/edit`,
    noticesQuery: `${APIV4}/api/notices/get`,
    noticesDel: `${APIV4}/api/notices/del`,
    noticesMultiDel: `${APIV4}/api/notices/delall`,
    privateNoticesList: `${APIV4}/api/notices/private/list`,
    // 通知公用API
    noticesUser: `${APIV4}/api/notices`,
    noticesUnread: `${APIV4}/api/notices/unreads`,
    // 角色相关的API
    roleList: `${APIV4}/api/roles/listbrif`,
    roleListAll: `${APIV4}/api/roles/allbrif`,
    roleAdd: `${APIV4}/api/roles/add`,
    roleEdit: `${APIV4}/api/roles/edit`,
    roleQuery: `${APIV4}/api/roles/get`,
    roleDel: `${APIV4}/api/roles/del`,
    roleMultiDel: `${APIV4}/api/roles/delall`,
    roleSet: `${APIV4}/api/roles/set/`,
    // 权限相关的API
    permissionsList: `${APIV4}/api/permissions/listbrif`,
    permissionsListAll: `${APIV4}/api/permissions/allbrif`,
    permissionsAll: `${APIV4}/api/permissions/listall`, // 获取所有permissions
    permissionsAdd: `${APIV4}/api/permissions/add`,
    permissionsEdit: `${APIV4}/api/permissions/edit`,
    permissionsQuery: `${APIV4}/api/permissions/get`,
    permissionsDel: `${APIV4}/api/permissions/del`,
    permissionsMultiDel: `${APIV4}/api/permissions/delall`,
    permissionsSet: `${APIV4}/api/permissions/set/`,
    currentUserPermissionTree: `${APIV4}/api/permissions/current/tree`,
    currentUserPermissionList: `${APIV4}/api/permissions/current/List`,
    currentUserPermission: `${APIV4}/api/permissions/owns`,
    // 基础数据相关API
    basicDataList: `${APIV4}/api/ift/basecode/listbrif`,
    basicDataListAll: `${APIV4}/api/ift/basecode/allbrif`,
    basicDataAdd: `${APIV4}/api/ift/basecode/add`,
    basicDataEdit: `${APIV4}/api/ift/basecode/edit`,
    basicDataQuery: `${APIV4}/api/ift/basecode/get`,
    basicDataDel: `${APIV4}/api/ift/basecode/del`,
    basicDataMultiDel: `${APIV4}/api/ift/basecode/delall`,
    basicDataAvailable: `${APIV4}/api/ift/basecode/used`,

    // 系统用户相关API
    sysUserList: `${APIV4}/api/users/listbrif`,
    sysUserListAll: `${APIV4}/api/users/allbrif`,
    sysUserAdd: `${APIV4}/api/users/add`,
    sysUserEdit: `${APIV4}/api/users/edit`,
    sysUserQuery: `${APIV4}/api/users/get`,
    sysUserDel: `${APIV4}/api/iusers/del`,
    sysUserMultiDel: `${APIV4}/api/users/delall`,
    sysUserChangePassword: `${APIV4}/api/users/updatepsw`,
    sysCurrentUser: `${APIV4}/api/users/current`,
    sysResetPassword: `${APIV4}/api/users/reset`,
    sysSetAccoutState: `${APIV4}/api/users/state`,
    // 登陆相关的API
    //  userLogin: `${APIV1}/user/login`,
    userLogout: `${APIV4}/logout`,
    userLogin: `${APIV4}/login`,
    userGetcaptcha: `${APIV4}/getcaptcha`,

    // 客户信息API
    customerList: `${APIV4}/api/ift/customers/listbrif`,
    customerListAll: `${APIV4}/api/ift/customers/allbrif`,
    customerAdd: `${APIV4}/api/ift/customers/add`,
    customerEdit: `${APIV4}/api/ift/customers/edit`,
    customerQuery: `${APIV4}/api/ift/customers/get`,
    customerNumber: `${APIV4}/api/ift/deal/getnum`,
    customerDel: `${APIV4}/api/ift/customers/del`,
    customerMultiDel: `${APIV4}/api/ift/customers/delall`,
    customerGetImg: `${APIV4}/api/ift/customers/getimg`,
    customerGetNumber: `${APIV4}/api/ift/customers/getnum`,

    // 客户电话API
    customerPhoneList: `${APIV4}/api/ift/customers/phone/list`,
    customerPhoneAdd: `${APIV4}/api/ift/customers/phone/add`,
    customerPhoneEdit: `${APIV4}/api/ift/customers/phone/edit`,
    customerPhoneDel: `${APIV4}/api/ift/customers/phone/del`,

    // 账户签约电话
    accoutSignPhoneList: `${APIV4}/api/ift/account/sign/phone/list`,
    accoutSignPhoneAdd: `${APIV4}/api/ift/account/sign/phone/add`,
    accoutSignPhoneEdit: `${APIV4}/api/ift/account/sign/phone/edit`,
    accoutSignPhoneDel: `${APIV4}/api/ift/account/sign/phone/del`,

    // 客户地址API
    customerAddressList: `${APIV4}/api/ift/customers/addr/list`,
    customerAddressAdd: `${APIV4}/api/ift/customers/addr/add`,
    customerAddressEdit: `${APIV4}/api/ift/customers/addr/edit`,
    customerAddressDel: `${APIV4}/api/ift/customers/addr/del`,

    // 客户身份认证信息
    customerIdentList: `${APIV4}/api/ift/customers/ident/list`,
    customerIdentAdd: `${APIV4}/api/ift/customers/ident/add`,
    customerIdentEdit: `${APIV4}/api/ift/customers/ident/edit`,
    customerIdentDel: `${APIV4}/api/ift/customers/ident/del`,

    // 客户雇主信息
    customerEmployerAddressEdit: `${APIV4}/api/ift/customers/employer/addr/edit`,
    customerEmployerAddressDel: `${APIV4}/api/ift/customers/employer/addr/del`,
    customerEmployerAddressQuery: `${APIV4}/api/ift/customers/employer/addr/get`,
    customerEmployerPhoneEdit: `${APIV4}/api/ift/customers/employer/phone/edit`,
    customerEmployerPhoneDel: `${APIV4}/api/ift/customers/employer/phone/del`,
    customerEmployerPhoneQuery: `${APIV4}/api/ift/customers/employer/phone/get`,

    // 账户签约电话
    accoutSignAddressList: `${APIV4}/api/ift/account/sign/addr/list`,
    accoutSignAddressAdd: `${APIV4}/api/ift/account/sign/addr/add`,
    accoutSignAddressEdit: `${APIV4}/api/ift/account/sign/addr/edit`,
    accoutSignAddressDel: `${APIV4}/api/ift/account/sign/addr/del`,

    // 账户信息
    accoutList: `${APIV4}/api/ift/account/list`,
    accoutAdd: `${APIV4}/api/ift/account/add`,
    accoutEdit: `${APIV4}/api/ift/account/edit`,
    accoutDel: `${APIV4}/api/ift/account/del`,
    accoutQuery: `${APIV4}/api/ift/account/get`,

    // 合并客户账户数据
    customerMerge: `${APIV4}/api/ift/Merge/Merge`,

    // 账户签约信息
    accoutSignQuery: `${APIV4}/api/ift/account/sign/get`,
    accoutSignEdit: `${APIV4}/api/ift/account/sign/edit`,
    accoutSignAdd: `${APIV4}/api/ift/account/sign/add`,
    accoutSignSelf: `${APIV4}/api/ift/account/sign/self`,

    // 账户签约证件信息
    accoutSignIdentAdd: `${APIV4}/api/ift/account/sign/ident/add`,
    accoutSignIdentEdit: `${APIV4}/api/ift/account/sign/ident/edit`,
    accoutSignIdentList: `${APIV4}/api/ift/account/sign/ident/list`,
    accoutSignIdentDel: `${APIV4}/api/ift/account/sign/ident/del`,

    // 账户签约雇主信息
    accoutSignEmployerAddressEdit: `${APIV4}/api/ift/account/sign/employer/addr/edit`,
    accoutSignEmployerAddressDel: `${APIV4}/api/ift/account/sign/employer/addr/del`,
    accoutSignEmployerAddressQuery: `${APIV4}/api/ift/account/sign/employer/addr/get`,
    accoutSignEmployerPhoneEdit: `${APIV4}/api/ift/account/sign/employer/phone/edit`,
    accoutSignEmployerPhoneDel: `${APIV4}/api/ift/account/sign/employer/phone/del`,
    accoutSignEmployerPhoneQuery: `${APIV4}/api/ift/account/sign/employer/phone/get`,

    // 公司电话API
    entityPhoneList: `${APIV4}/api/ift/entity/phone/list`,
    entityPhoneAdd: `${APIV4}/api/ift/entity/phone/add`,
    entityPhoneEdit: `${APIV4}/api/ift/entity/phone/edit`,
    entityPhoneDel: `${APIV4}/api/ift/entity/phone/del`,

    // 公司地址API
    entityAddressList: `${APIV4}/api/ift/entity/addr/list`,
    entityAddressAdd: `${APIV4}/api/ift/entity/addr/add`,
    entityAddressEdit: `${APIV4}/api/ift/entity/addr/edit`,
    entityAddressDel: `${APIV4}/api/ift/entity/addr/del`,

    // 公司负责人电话API
    entityDirectorPhoneList: `${APIV4}/api/ift/entity/director/phone/list`,
    entityDirectorPhoneAdd: `${APIV4}/api/ift/entity/director/phone/add`,
    entityDirectorPhoneEdit: `${APIV4}/api/ift/entity/director/phone/edit`,
    entityDirectorPhoneDel: `${APIV4}/api/ift/entity/director/phone/del`,

    // 公司负责人信息
    entityDirectorList: `${APIV4}/api/ift/entity/director/list`,
    entityDirectorAdd: `${APIV4}/api/ift/entity/director/add`,
    entityDirectorUpdate: `${APIV4}/api/ift/entity/director/edit`,
    entityDirectorDel: `${APIV4}/api/ift/entity/director/del`,
    entityDirectorGet: `${APIV4}/api/ift/entity/director/get`,

    // 公司负责人地址API
    entityDirectorAddressList: `${APIV4}/api/ift/entity/director/addr/list`,
    entityDirectorAddressAdd: `${APIV4}/api/ift/entity/director/addr/add`,
    entityDirectorAddressEdit: `${APIV4}/api/ift/entity/director/addr/edit`,
    entityDirectorAddressDel: `${APIV4}/api/ift/entity/director/addr/del`,

    // 公司信息
    entityList: `${APIV4}/api/ift/entity/list`,
    entityAdd: `${APIV4}/api/ift/entity/add`,
    entityEdit: `${APIV4}/api/ift/entity/edit`,
    entityDel: `${APIV4}/api/ift/entity/del`,
    entityQuery: `${APIV4}/api/ift/entity/get`,
    entityDirectorEdit: `${APIV4}/api/ift/entity/director/edit`,
    entityDirectorQuery: `${APIV4}/api/ift/entity/director/get`,

    // 交易信息
    transactionReceiptList: `${APIV4}/api/ift/deal/list`,
    transactionReceiptQuery: `${APIV4}/api/ift/deal/get`,
    transactionReceiptQueryAll: `${APIV4}/api/ift/deal/getAll`,
    transactionReceiptAdd: `${APIV4}/api/ift/deal/add`,
    transactionReceiptUpdate: `${APIV4}/api/ift/deal/edit`,
    transactionReceiptArrivesUpdate: `${APIV4}/api/ift/deal/editArrive`,
    transactionReceiptPaysUpdate: `${APIV4}/api/ift/deal/editPay`,
    transactionReceiptDelete: `${APIV4}/api/ift/deal/del`,
    transactionReceiptArrivesDelete: `${APIV4}/api/ift/deal/delArrive`,
    transactionReceiptPaysDelete: `${APIV4}/api/ift/deal/delPay`,
    transactionReceiptListAll: `${APIV4}/api/ift/deal/listbrif`,
    transactionReceiptPay: `${APIV4}/api/ift/deal/addPay`,
    transactionReceiptPayOk: `${APIV4}/api/ift/deal/verifyPay`, // 支付成功
    transactionReceiptPaySelf: `${APIV4}/api/ift/deal/payself`, // 余额购买
    transactionReceiptReport: `${APIV4}/api/ift/deal/report`, // 产生报告
    transactionReceiptReported: `${APIV4}/api/ift/deal/reported`, // 产生报告
    transactionReceiptArrive: `${APIV4}/api/ift/deal/addArrive`, // 到账
    transactionReceiptArrived: `${APIV4}/api/ift/deal/verifyArrive`, // 到账确认
    transactionReceiptAddArriveThree: `${APIV4}/api/ift/deal/addArriveThree`, // 到账确认
    transactionReceiptBack: `${APIV4}/api/ift/deal/back`, // 步骤回退
    transactionReceiptVisible: `${APIV4}/api/ift/deal/visible`, // 步骤回退

    // 外汇交易公司的账户信息
    adminCompanyAccountListAll: `${APIV4}/api/ift/account/company/allbrif`,
    adminCompanyAccountListbrif: `${APIV4}/api/ift/account/company/listbrif`,
    adminCompanyAccountList: `${APIV4}/api/ift/account/company/list`,
    adminCompanyAccountDelete: `${APIV4}/api/ift/account/company/del`,
    adminCompanyAccountUpdate: `${APIV4}/api/ift/account/company/edit`,
    adminCompanyAccountAdd: `${APIV4}/api/ift/account/company/add`,
    adminCompanyAccountQuery: `${APIV4}/api/ift/account/company/get`,

    // 外汇交易公司的账户明细账目
    adminCompanyAccountDetailListAll: `${APIV4}/api/ift/account/detail/allbrif`,
    adminCompanyAccountDetailListbrif: `${APIV4}/api/ift/account/detail/listbrif`,
    adminCompanyAccountDetailList: `${APIV4}/api/ift/account/detail/list`,
    adminCompanyAccountDetailDelete: `${APIV4}/api/ift/account/detail/del`,
    adminCompanyAccountDetailUpdate: `${APIV4}/api/ift/account/detail/edit`,
    adminCompanyAccountDetailAdd: `${APIV4}/api/ift/account/detail/add`,
    adminCompanyAccountDetailQuery: `${APIV4}/api/ift/account/detail/get`,

    // 客户账户余额
    customerSurplusListAll: `${APIV4}/api/ift/account/surplus/allbrif`,
    customerSurplusListbrif: `${APIV4}/api/ift/account/surplus/listbrif`,
    customerSurplusList: `${APIV4}/api/ift/account/surplus/list`,
    customerSurplusQuery: `${APIV4}/api/ift/account/surplus/get`,

    // 客户明细账目
    customerSurplusDetailListAll: `${APIV4}/api/ift/customer/account/detail/allbrif`,
    customerSurplusDetailListbrif: `${APIV4}/api/ift/customer/account/detail/listbrif`,
    customerSurplusDetailList: `${APIV4}/api/ift/customer/account/detail/list`,
    customerSurplusDetailQuery: `${APIV4}/api/ift/customer/account/detail/get`,
    customerSurplusDetailAdd: `${APIV4}/api/ift/customer/account/detail/add`,
    customerSurplusDetailDelete: `${APIV4}/api/ift/customer/account/detail/del`,
    customerSurplusDetailUpdate: `${APIV4}/api/ift/customer/account/detail/edit`,

    // 服务费率
    serviceRateQuery: `${APIV4}/api/ift/rate/get`,
    serviceRateUpdate: `${APIV4}/api/ift/rate/edit`,

    // 交换汇率设置
    exchangeSetAdd: `${APIV4}/api/ift/rset/add`,
    exchangeSetAllBrif: `${APIV4}/api/ift/rset/allbrif`,
    exchangeSetDel: `${APIV4}/api/ift/rset/del`,
    exchangeSetMultiDel: `${APIV4}/api/ift/rset/delall`,
    exchangeSetEdit: `${APIV4}/api/ift/rset/edit`,
    exchangeSetGet: `${APIV4}/api/ift/rset/get`,
    exchangeSetList: `${APIV4}/api/ift/rset/list`,
    exchangeSetListBrif: `${APIV4}/api/ift/rset/listbrif`,

    // 服务费设置
    serviceFeeAdd: `${APIV4}/api/ift/sfee/add`,
    serviceFeeAllBrif: `${APIV4}/api/ift/sfee/allbrif`,
    serviceFeeDel: `${APIV4}/api/ift/sfee/del`,
    serviceFeeMultiDel: `${APIV4}/api/ift/sfee/delall`,
    serviceFeeEdit: `${APIV4}/api/ift/sfee/edit`,
    serviceFeeGet: `${APIV4}/api/ift/sfee/get`,
    serviceFeeList: `${APIV4}/api/ift/sfee/list`,
    serviceFeeListBrif: `${APIV4}/api/ift/sfee/listbrif`,

    // 实时交换汇率设置
    exchangeRateAllBrif: `${APIV4}/api/ift/rate/allbrif`,
    exchangeRateCurrency: `${APIV4}/api/ift/rate/currency`,
    exchangeRateDel: `${APIV4}/api/ift/rate/del`,
    exchangeRateGet: `${APIV4}/api/ift/rate/get`,
    exchangeRateEdit: `${APIV4}/api/ift/rate/edit`,
    exchangeRateList: `${APIV4}/api/ift/rate/list`,
    exchangeRateListBrif: `${APIV4}/api/ift/rate/listbrif`,
    exchangeRateSet: `${APIV4}/api/ift/rate/set`,

    // 公司账目交易信息
    companyChargeTypeAdd: `${APIV4}/api/ift/chargetype/add`,
    companyChargeTypeAllBrif: `${APIV4}/api/ift/chargetype/allbrif`,
    companyChargeTypeDel: `${APIV4}/api/ift/chargetype/del`,
    companyChargeTypeMultiDel: `${APIV4}/api/ift/chargetype/delall`,
    companyChargeTypeEdit: `${APIV4}/api/ift/chargetype/edit`,
    companyChargeTypeGet: `${APIV4}/api/ift/chargetype/get`,
    companyChargeTypeList: `${APIV4}/api/ift/chargetype/list`,
    companyChargeTypeListBrif: `${APIV4}/api/ift/chargetype/listbrif`,

    // 报告人电话API
    reportBasePhoneList: `${APIV4}/api/ift/reportbase/phone/list`,
    reportBasePhoneAdd: `${APIV4}/api/ift/reportbase/phone/add`,
    reportBasePhoneEdit: `${APIV4}/api/ift/reportbase/phone/edit`,
    reportBasePhoneDel: `${APIV4}/api/ift/reportbase/phone/del`,

    // 报告人地址API
    reportBaseAddressList: `${APIV4}/api/ift/reportbase/addr/list`,
    reportBaseAddressAdd: `${APIV4}/api/ift/reportbase/addr/add`,
    reportBaseAddressEdit: `${APIV4}/api/ift/reportbase/addr/edit`,
    reportBaseAddressDel: `${APIV4}/api/ift/reportbase/addr/del`,

    // 报告人信息
    reportBaseEdit: `${APIV4}/api/ift/reportbase/edit`,
    reportBaseQuery: `${APIV4}/api/ift/reportbase/get`,

    // 系统基础功能 文件上传
    filesUpload: `${APIV4}/api/files/upload`,

    // ift交易报告信息
    reportList: `${APIV4}/api/ift/report/list`,
    reportGet: `${APIV4}/api/ift/report/get`,
    reportAdd: `${APIV4}/api/ift/report/add`,
    reportDel: `${APIV4}/api/ift/report/del`,
    reportXML: `${APIV4}/api/ift/report/xml`,
    reportDownXML: `${APIV4}/api/ift/report/downfilexml`,
    reportBrief: `${APIV4}/api/ift/report/getbrief`,
    reportTransList: `${APIV4}/api/ift/report/listtransactions`,

    // /公司账户统计
    companyAccountsStatisticsSum: `${APIV4}/api/ift/account/Statistics/sum`,
    companyAccountsStatisticsExcel: `${APIV4}/api/ift/account/Statistics/excel`,

    // //交易单统计
    transactionStatisticsSum: `${APIV4}/api/ift/deal/sum`,
    transactionStatisticsExcel: `${APIV4}/api/ift/deal/excel`,
  },
}
